const statisticsMod = (request) => {
	return {
		// 各区内不同等级的养老机构分布情况
		view_statistics_organization(query = {}) {
			return request('/bussiness/statistics/organization', {
				method: 'post',
				data: query,
			})
		},
		// 各区内从业人员分布情况 各区内不同岗位人员分布情况
		view_statistics_practitioner(query = {}) {
			return request('/bussiness/statistics/practitioner', {
				method: 'post',
				data: query,
			})
		},
		// 各区内失能半失能老人情况
		view_statistics_elderly(query = {}) {
			return request('/bussiness/statistics/elderly', {
				method: 'post',
				data: query,
			})
		},
		// 首页工作台统计
		view_dpStatistics_search(query = {}) {
			return request('/bussiness/dpStatistics/search', {
				method: 'post',
				data: query,
			})
		},
		// 首页服务对象统计
		view_dpServiceObject_statistic(query = {}) {
			return request('/bussiness/dpServiceObject/getStatistic', {
				method: 'post',
				data: query,
			})
		},
		// 首页从业人员统计
		view_dpFoundationPractitioners_statistic(query = {}) {
			return request('/bussiness/dpFoundationPractitioners/getStatistic', {
				method: 'post',
				data: query,
			})
		},
		// 首页志愿者统计
		view_dpVolunteer_statistic(query = {}) {
			return request('/bussiness/dpVolunteer/getStatistic', {
				method: 'post',
				data: query,
			})
		},

		// 居家老人统计
		view_dpServiceObjectHome_statistic(query = {}) {
			return request('/bussiness/dpServiceObjectHome/getStatistic', {
				method: 'get',
				params: query,
			})
		},
		// 居家服务商加运营单位统计
		view_dpServiceHome_orgStatistics(query = {}) {
			return request('/bussiness/dpServiceOrgHome/getStatistic', {
				method: 'get',
				params: query,
			})
		},
		// 居家养老从业人员统计
		view_dpFoundationPractitionersHome_statistic(query = {}) {
			return request('/bussiness/dpFoundationPractitionersHome/getStatistic', {
				method: 'get',
				params: query,
			})
		},

		// 业务居家老人统计
		view_omBusinessServiceObject_statistic(query = {}) {
			return request('/management/omBusinessServiceObject/getStatistic', {
				method: 'get',
				params: query,
			})
		},
		// 业务居家养老从业人员统计
		view_omBusinessPractitioners_statistic(query = {}) {
			return request('/management/omBusinessPractitioners/getStatistic', {
				method: 'get',
				params: query,
			})
		},
	}
}

export default ({ request }: any) => ({
	...statisticsMod(request),
})
